package com.laijiale.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author laijiale
 * @date 2024年07月28日 11:57
 */
@Schema(description = "房间添加DTO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomInsertDTO implements Serializable {
    @NotEmpty(message = "房间名称不能为空")
    @Schema(description = "房间名称")
    private String title;
    @Schema(description = "房间地址")
    @NotEmpty(message = "房间地址不能为空")
    private String address;
    @Schema(description = "房间信息")
    @NotEmpty(message = "房间信息不能为空")
    private String info;
    @Schema(description = "房间容量")
    @Min(value = 0,message = "房间容量不能小于0")
    @NotNull(message = "房间容量不能为空")
    private Integer capacity;


}
